namespace SumerCoreDevOps.Shared.Models;

/// <summary>
/// Dashboard 统计数据
/// </summary>
public class DashboardStatistics
{
    /// <summary>
    /// 今日总构建数
    /// </summary>
    public int TodayBuilds { get; set; }

    /// <summary>
    /// 今日成功构建数
    /// </summary>
    public int TodaySuccessBuilds { get; set; }

    /// <summary>
    /// 今日失败构建数
    /// </summary>
    public int TodayFailedBuilds { get; set; }

    /// <summary>
    /// 平均构建时间(分钟)
    /// </summary>
    public double AvgBuildTimeMinutes { get; set; }

    /// <summary>
    /// 成功率(百分比)
    /// </summary>
    public double SuccessRate { get; set; }

    /// <summary>
    /// 总流水线数
    /// </summary>
    public int TotalPipelines { get; set; }

    /// <summary>
    /// 激活的流水线数
    /// </summary>
    public int ActivePipelines { get; set; }
}
